package aryn.framework.examples.display;

import java.awt.Color;

import aryn.framework.display.MyCanvas;
import aryn.framework.display.MyFrame;

public class Example2 {

	public static void main(String[] args) {
		final MyFrame frame = new MyFrame(500, 600);
		final MyCanvas canvas = new MyCanvas(0, 0, 300,600);
		final MyCanvas c2 = new MyCanvas(300, 0, 100, 600);
		final Logic logic = new Logic(canvas);
		canvas.setLogic(logic);
		canvas.setDrawSelection(true);
		c2.setBackground(Color.CYAN);
		canvas.setBackground(Color.BLUE);
		frame.addCanvas(canvas);
		frame.addCanvas(c2);
		
		canvas.addString("hello world", 30, 80);
		canvas.addImage("imgs/sfondoPiante.png", 30, 30);
	}
}
